import axios from 'axios'

const service = axios.create({
    baseURL: process.env.BASE_API,
    timeout: 60000,
    withCredentials: true,
});

service.interceptors.request.use(
    config => {
        const tokenKey = process.env.APP_TOKEN_KEY || "TempTokenName";
        config.headers[tokenKey] = "";
        return config;
    },
    error => Promise.reject(error)
)

service.interceptors.response.use(
    response => {
        
    },
    error => {
        
    }
)


export default service